package lab02.Triangle;

/**
 * Created by lenovo on 2017/10/14.
 */
public class Ladder {
    //属性
    double shangdi, xiadi, gao, area;

    //行为
    Ladder(double sd, double xd, double g) {
        shangdi = sd;
        xiadi = xd;
        gao = g;
        area=(sd+xd)*g/2;
    }
    double getArea(){
        return area;
    }

}



